/*
 * @Author: xuwejie 1529315455@qq.com
 * @Date: 2023-08-28 11:38:43
 * @LastEditors: xuwejie 1529315455@qq.com
 * @LastEditTime: 2023-09-01 15:49:35
 * @FilePath: \cdj-jyt_school-vue\src\api\supplier\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

// 新增供应商时,先查询供应商数据
export function querySupplierList(params) {
  return request({
    url: "/supplier/all",
    method: "get",
    params
  });
}

// 新增供应商
export function addSupplierList(params) {
  return request({
    url: "/supplier/operate",
    method: "post",
    data: params
  });
}

// 查询供应商列表
export function getSupplierList(params) {
  return request({
    url: "/supplier/list",
    method: "get",
    params
  });
}

// 删除供应商列表
export function delSupplierList(params) {
  return request({
    url: "/supplier/operate",
    method: "post",
    params
  });
}

// 审核供应商列表
export function supplierAudit(params) {
  return request({
    url: "/supplier/audit",
    method: "post",
    params
  });
}

// 冻结
export function changeOperate(params) {
  return request({
    url: "/supplier/invalid",
    method: "post",
    params
  });
}